home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Watcom String Initialization
- Date: 9 Mar 1996 16:27 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <9MAR199616271872@erich.triumf.ca>
- References: <N.030996.173901.65@mail>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <N.030996.173901.65@mail>, erowe@mail.bayou.com (Eddie Rowe) writes...
- >Has anyone experienced any problems with strings initialization when using
- >Watcom's compiler? I have run into incidents where LOCAL strings are not being
- >initialized correctly.
-
- Local (really "automatic") variable of any type are _not_ initialized. If you
- want any local variables (of whatever type) initialized to a specific value,
- you have to do it yourself. You may, on occasion, be (un?)lucky and find that
- an automatic variable magically has some value you want, but don't depend on
- it.
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
-
-